<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<c:if test="${!empty empAuths}">
	<hr/>
	<h3>Danh sách nhân viên</h3>
	
	<table class="tb-content" style="width: 100%">
		<tr>
			<th style="width: 80%">Email </th><th>Trạng thái</th>
		</tr>
		<c:forEach items="${empAuths}" var="obj">
			<tr>
				<td>
					<a href="javascript:void(0)" onclick="showForm('${obj.id}','${obj.accountName}','${obj.roleId}','${obj.companyId}','${obj.active}')">${obj.accountName}</a>
				</td>
				
				<td style="text-align: center;">
					<c:choose>
						<c:when test="${obj.active == 1}"><input type="checkbox" checked="checked" disabled="disabled"></c:when>
						<c:otherwise>-</c:otherwise>
					</c:choose>				
			</tr>
		</c:forEach>
	</table>
</c:if>